package chixing.day08.work;

public class stutest {
    public static void main(String[] args) {
        // 创建多个学生实例
        MyStudent s1 = new MyStudent("张三", 85.5);
        MyStudent s2 = new MyStudent("李四", 92.0);
        MyStudent s3 = new MyStudent("王五", 78.5);
        MyStudent s4 = new MyStudent("赵六", 95.0);

        // 输出每位学生信息
        System.out.println(s1.getStudentInfo());
        System.out.println(s2.getStudentInfo());
        System.out.println(s3.getStudentInfo());
        System.out.println(s4.getStudentInfo());

        // 输出全班平均成绩
        System.out.println("\n全班平均成绩: " + MyStudent.getAverageScore());
    }
}
